const crypto = require('crypto')


module.exports = (options, app) => {
    return async function responseTime(ctx, next) {
        const {ticket, randstr, phone, userId} = ctx.request.body
        const ip = ''
        await ctx.service.captcha.validate(ticket, randstr, ip)
        await next()
    }
};